import request from '@/utils/request'

// 查询司机信息附件列表
export function listAttachments(query) {
  return request({
    url: '/driver/attachments/list',
    method: 'get',
    params: query
  })
}

// 查询司机信息附件详细
export function getAttachments(id) {
  return request({
    url: '/driver/attachments/' + id,
    method: 'get'
  })
}

// 新增司机信息附件
export function addAttachments(data) {
  return request({
    url: '/driver/attachments',
    method: 'post',
    data: data
  })
}

// 修改司机信息附件
export function updateAttachments(data) {
  return request({
    url: '/driver/attachments',
    method: 'put',
    data: data
  })
}

// 删除司机信息附件
export function delAttachments(id) {
  return request({
    url: '/driver/attachments/' + id,
    method: 'delete'
  })
}
